import math
result = 100
print("水仙花数如下：")
while result < 1000:
    if (math.pow(int(result / 100), 3)+math.pow(int(result / 10 % 10), 3)+math.pow(int(result % 10), 3)) == result:
        print(result)
    result += 1
